package com.yjm.test.Spring5.ch3.autowire;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

@Component
//@Primary
public class FooOne implements Foo {

	@Override
	public String getName() {
		return "FooOne(" + ((Object)this).toString() + ")";
	}

	@Override
	public String toString() {
		return "FooOne.toString&" + super.toString();
	}
}
